<?php include 'php/init.php'; ?>
<?php

if ( Session::isUserAuthenticated() === FALSE )
{
	Utils::redirectLogin();
}

?>
<?php include 'php/inc/header.php'; ?>
<?php 

$p = isset($_GET['p']) && !empty($_GET['p']) && file_exists('php/pages/'.$_GET['p'].'.php') ? $_GET['p'] : 'home';

?>
<?php include 'php/pages/'.$p.'.php'; ?>
<?php include 'php/inc/footer.php'; ?>
